package com.iqiyi.game.ams.infrastructure.app;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author hanbaoyu
 */

@Getter
@AllArgsConstructor
public enum ResponseEnum {

    OK(0, "ok"),

    AUTH_ERROR(401, "请登录或退出重新登录"),

    ERROR(500, "用户错误"),
    // 需要记日志报警
    ERROR_G(ERROR.getCode(), ERROR.getMessage()),

    UNKNOWN_ERROR(501, "服务器发生未知错误");

    private Integer code;
    private String message;
}
